<?php
/**
 * User: wangxiaoxiao
 * Date: 2020年6月28日  0028
 * Time: 下午 18:05
 * Description:
 */

namespace api\lib;

use api\models\Good;
use common\config\AppConf;
use common\helpers\StringHelper;
use yii\db\Expression;

class GoodHelper extends BaseHelper
{

    /**
     * User: wangxiaoxiao
     * Description: 获取所有商品
     * @return object
     */
    public static function goodsList()
    {
        $goodsData = Good::find()->asArray()->all();
        return $goodsData;
    }
}